
export function getDateList(data){
	 return new Promise((resolve, reject) => {  
		return uni.request({
		  url: 'imgStore/openApi/getDateList', 
		  method: 'get', 
		  data: data,
		  success: (res) => {
			resolve(res.data)
		  },
		  fail: (err) => {
			reject(err)
		  }
		});
	});
}

export function linkMethod(data){
	 return new Promise((resolve, reject) => {  
		return uni.request({
		  url: 'imgStore/storeCommon/linkMethod', // 接口地址
		  method: 'get', // 请求方法
		  data: data,
		  success: (res) => {
			resolve(res.data)
		  },
		  fail: (err) => {
			reject(err)
		  }
		});
	});
}

export function getAdUnitIdConfig(data){
	return new Promise((resolve, reject) => {
		return uni.request({
		  url: 'imgStore/app/getAdUnitIdConfig', 
		  method: 'get', 
		  data: data,
		  success: (res) => {
			resolve(res.data)
		  },
		  fail: (err) => {
			reject(err)
		  }
		});
	});
}

export function getAppList(data){
	 return new Promise((resolve, reject) => {  
		return uni.request({
		  url: 'imgStore/openApi/appList', 
		  method: 'get', 
		  data: data,
		  success: (res) => {
			resolve(res.data)
		  },
		  fail: (err) => {
			reject(err)
		  }
		});
	});
}



export function addCountVisits(data){
	 return new Promise((resolve, reject) => {  
		return uni.request({
		  url: 'imgStore/openApi/addCountVisits', 
		  method: 'get', 
		  data: data,
		  success: (res) => {
			resolve(res.data)
		  },
		  fail: (err) => {
			reject(err)
		  }
		});
	});
}


export function applicationVisitStatistics(data){
	 return new Promise((resolve, reject) => {  
		return uni.request({
		  url: 'imgStore/openApi/applicationVisitStatistics', 
		  method: 'get', 
		  data: data,
		  success: (res) => {
			resolve(res.data)
		  },
		  fail: (err) => {
			reject(err)
		  }
		});
	});
}




export function getNamesAppList(data){
	 return new Promise((resolve, reject) => {  
		return uni.request({
		  url: 'imgStore/openApi/namesAppList', 
		  method: 'get', 
		  data: data,
		  success: (res) => {
			resolve(res.data)
		  },
		  fail: (err) => {
			reject(err)
		  }
		});
	});
}